package com.darren.euc.service;

import java.util.List;

import com.darren.euc.entity.Manager;
import com.darren.euc.entity.PageBean;

import net.sf.json.JSONObject;

public interface ManagerService{
    
	public Manager save(Manager manager);
	
	public Manager update(Manager manager);
	
	public Manager getManagerByRoleIdAndUserId(String roleId,String userId) ;
	
	public Manager findManagerById(Integer id);
	    
	public void deleteById(Integer id);
	
	public List<Manager> getAll();    
	
    public PageBean queryForPageUseHQLByRoleId(JSONObject requestJson,Integer pageSize, Integer currentPage);
    
    public PageBean queryForPageUseSQLByRoleName(JSONObject requestJson,Integer pageSize, Integer currentPage) ;

}